package net.lcqf.websocket.send;

import io.netty.channel.Channel;

/**
 * +----------------------------------------------------------------------
 * // | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2021-2025 聊来 All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * // +----------------------------------------------------------------------
 * // | @Author: 聊来 <18970881148@qq.com>
 * // +----------------------------------------------------------------------
 * // | DateTime: 2025/4/16 11:50
 * // +----------------------------------------------------------------------
 */
public interface MessageBaseService {

    void init();

    /**
     * 消息类型的抽象接口
     * @param channel 消息通道
     * @param msg 内容
     * @return Object
     */
    default Object sendMessage(Channel channel, String msg) { return msg; }
}
